com.sabro.jbusiness.uteis
Enum ObjetoComplexo.TipoConteudo

java.lang.Object
  extended by java.lang.Enum<ObjetoComplexo.TipoConteudo>
      extended by com.sabro.jbusiness.uteis.ObjetoComplexo.TipoConteudo
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ObjetoComplexo.TipoConteudo>
Enclosing class:
ObjetoComplexo

public static enum ObjetoComplexo.TipoConteudo
extends java.lang.Enum<ObjetoComplexo.TipoConteudo>

Identifica o tipo de conteúdo que vai ser armazenado no banco de dados. Indefinido - Indica que não é possível identificar o tipo Desconhecido - Indica que não existe o tipo indicado Extendido - Indica que é uma classe java armazenada através de serialização Imagem - Indica que é um arquivo de imagem e os 252 bytes seguintes descrevem o nome e a extensão do arquivo Outro - Indica que é um arquivo não imagem e os 252 bytes seguintes descrevem o nome e a extensão do arquivo


Enum Constant Summary
Desconhecido
           
Extendido
           
Imagem
           
Indefinido
           
Outro
           
 
Method Summary
 byte getCode()
           
static ObjetoComplexo.TipoConteudo getTipoConteudo(int code)
           
static ObjetoComplexo.TipoConteudo valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ObjetoComplexo.TipoConteudo[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Indefinido

public static final ObjetoComplexo.TipoConteudo Indefinido

Desconhecido

public static final ObjetoComplexo.TipoConteudo Desconhecido

Extendido

public static final ObjetoComplexo.TipoConteudo Extendido

Imagem

public static final ObjetoComplexo.TipoConteudo Imagem

Outro

public static final ObjetoComplexo.TipoConteudo Outro
Method Detail

values

public static ObjetoComplexo.TipoConteudo[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ObjetoComplexo.TipoConteudo c : ObjetoComplexo.TipoConteudo.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ObjetoComplexo.TipoConteudo valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCode

public byte getCode()

getTipoConteudo

public static ObjetoComplexo.TipoConteudo getTipoConteudo(int code)